Skip to content

Conversation

@Nico8340
Copy link
Member

@Nico8340 Nico8340 commented Mar 2, 2025

Fixes a crash in the CChat::CharacterKeyHandler function, which was introduced by #3725. The szCommand pointer was not checked for validity before being used, leading to a crash when attempting to reference an invalid pointer. Additionally, proper null termination of the szCommand string is ensured to avoid potential buffer issues.

@Dutchman101 Dutchman101 merged commit d279e3c into multitheftauto:master Mar 2, 2025
6 checks passed
MTABot pushed a commit that referenced this pull request Mar 2, 2025
d279e3c Fix crash caused by #3725 in `CChat::CharacterKeyHandler` (#4060)
@Nico8340 Nico8340 deleted the crashfix branch March 2, 2025 00:56
@botder botder added the bugfix Solution to a bug of any kind label Mar 2, 2025
@botder botder added this to the 1.6.1 milestone Mar 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix Solution to a bug of any kind

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants